
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGPerspectiveCamera.h>
#include <OpenSG/OSGPerspectiveCameraBase.h>
#include <OpenSG/OSGViewport.h>
#include <OpenSG/OSGDrawAction.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_PerspectiveCamera_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_PerspectiveCamera()
{
    scope* osg_PerspectiveCameraBase_scope = new scope(
    class_< osg::PerspectiveCameraBase, bases< osg::Camera > , boost::noncopyable >("PerspectiveCameraBase", no_init)
//        .def_readonly("FovFieldMask", &osg::PerspectiveCameraBase::FovFieldMask)
//        .def_readonly("AspectFieldMask", &osg::PerspectiveCameraBase::AspectFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::PerspectiveCameraBase::MTInfluenceMask)
        .def("getClassType", &osg::PerspectiveCameraBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::PerspectiveCameraBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::PerspectiveCameraBase::*)() )&osg::PerspectiveCameraBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::PerspectiveCameraBase::*)() const)&osg::PerspectiveCameraBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::PerspectiveCameraBase::getContainerSize)
        //.def("getFov", (osg::Real32& (osg::PerspectiveCameraBase::*)() )&osg::PerspectiveCameraBase::getFov, return_value_policy< copy_const_reference >())
        .def("getFov", (const osg::Real32& (osg::PerspectiveCameraBase::*)() const)&osg::PerspectiveCameraBase::getFov, return_value_policy< copy_const_reference >())
        //.def("getAspect", (osg::Real32& (osg::PerspectiveCameraBase::*)() )&osg::PerspectiveCameraBase::getAspect, return_value_policy< copy_const_reference >())
        .def("getAspect", (const osg::Real32& (osg::PerspectiveCameraBase::*)() const)&osg::PerspectiveCameraBase::getAspect, return_value_policy< copy_const_reference >())
        .def("setFov", &osg::PerspectiveCameraBase::setFov)
        .def("setAspect", &osg::PerspectiveCameraBase::setAspect)
        .def("getBinSize", &osg::PerspectiveCameraBase::getBinSize)
        .def("copyToBin", &osg::PerspectiveCameraBase::copyToBin)
        .def("copyFromBin", &osg::PerspectiveCameraBase::copyFromBin)
        .def("create", &osg::PerspectiveCameraBase::create)
        .def("createEmpty", &osg::PerspectiveCameraBase::createEmpty)
        .def("shallowCopy", &osg::PerspectiveCameraBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::PerspectiveCameraBase::NextFieldId;
    scope().attr("FovFieldId") = (int)osg::PerspectiveCameraBase::FovFieldId;
    scope().attr("AspectFieldId") = (int)osg::PerspectiveCameraBase::AspectFieldId;

    delete osg_PerspectiveCameraBase_scope;

    class_< osg::PerspectiveCamera, bases< osg::PerspectiveCameraBase > , boost::noncopyable, osg::PerspectiveCameraRefPtr >("PerspectiveCamera", no_init)
        .def("getClassname", &osg::PerspectiveCamera::getClassname)
        .def("changed", &osg::PerspectiveCamera::changed)
        //.def("draw", &osg::PerspectiveCamera::draw)
        .def("getProjection", &osg::PerspectiveCamera::getProjection)
        .def("dump", &osg::PerspectiveCamera::dump, osg_PerspectiveCamera_dump_overloads_0_2())
        .staticmethod("getClassname")
    ;


    register_ptr_to_python<osg::PerspectiveCameraPtr>();
    implicitly_convertible<osg::PerspectiveCameraRefPtr, osg::PerspectiveCameraPtr>();
    implicitly_convertible<osg::PerspectiveCameraPtr, osg::CameraPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::PerspectiveCameraPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::PerspectiveCameraPtr>);
}

